import java.time.OffsetDateTime;
import java.util.Arrays;
import java.util.Scanner;

public class Main {


    public static void main8(String[] args) {
        Scanner sc = new Scanner(System.in);
        int m = sc.nextInt();
        int n = sc.nextInt();
        char[][] board = new char[m][n];
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < n; j++) {
                board[i][j] = sc.next().charAt(0);
            }
        }
        int beginM = sc.nextInt();
        int beginN = sc.nextInt();
        int endM = sc.nextInt();
        int endN = sc.nextInt();






        for (int i = 0; i < m; i++) {
            for (int j = 0; j < n; j++) {
                System.out.print(board[i][j]+" ");
            }
            System.out.println();
        }






    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.nextLine();
        String newString = input.toLowerCase();
        int count = 0;
        StringBuilder builder = new StringBuilder(input);
        builder.append('a');
        builder.append('a');
        builder.append('a');

        for (int i = 0; i < newString.length()-1; i++) {
            if (newString.charAt(i) == 'o' && newString.charAt(i+1) == 'u' && newString.charAt(i+2) == 'r') {
                count++;
            }else if (newString.charAt(i) == 'o' && newString.charAt(i+1) == 'r'){
                count++;
            }
        }
        System.out.print(count);

    }




    public static void main5(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.nextLine();
        String[] nums = input.split("");
        int[] arr = new int[nums.length];
        for (int i = 0; i < nums.length; i++) {
            arr[i] = Integer.parseInt(nums[i]);
        }
        Arrays.sort(arr);
        StringBuilder sb = new StringBuilder();
        for (int i = arr.length-1;i>=0; i--) {
            sb.append(arr[i]);
        }
        System.out.println(sb.toString());
    }


    public static void main4(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.nextLine();
        String[] nums = input.split("");
        int[] arr = new int[nums.length];
        for (int i = 0; i < nums.length; i++) {
            arr[i] = Integer.parseInt(nums[i]);
        }
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            if (i == 0 ){
                sum += 500;
            }else if (arr[i] == arr[i-1]){
                sum += 301;
            }else if (isCommit(arr[i], arr[i-1])){
                sum += 210;
            }else {
                sum += 100;
            }
        }
        System.out.println(sum);
    }
    public static boolean isCommit(int a,int b){
        if ((a == 1 || a ==2 || a ==3 || a ==4 || a ==5) &&
        (b == 1 || b == 2 || b == 3 || b == 4 || b == 5)){
            return true;
        }else if ((a == 6 || a == 7 || a == 8 || a == 9 || a == 0) && (b ==6 || b == 7 || b == 8 || b == 9 || b == 0)){
            return true;
        }
        return false;
    }




        public static void main3(String[] args) {
            Scanner scanner = new Scanner(System.in);
            String input = scanner.nextLine();

            // 将输入的字符串按照逗号分割成字符串数组
            String[] scoresStr = input.split(",");
            // 将字符串数组转换为浮点数数组
            double[] scores = new double[scoresStr.length];
            for (int i = 0; i < scoresStr.length; i++) {
                scores[i] = Double.parseDouble(scoresStr[i].trim());
            }

            // 对分数进行排序
            Arrays.sort(scores);

            // 计算去掉一个最高分和一个最低分后的分数总和
            double sum = 0;
            for (int i = 1; i < scores.length - 1; i++) {
                sum += scores[i];
            }

            // 计算平均分
            double average = sum / (double)(scores.length - 2);

            // 输出最高分、最低分和平均分
            System.out.println(formatAverageScore(scores[scores.length - 2]));
            System.out.println(formatAverageScore(scores[1]));
            System.out.printf("%.2f\n", average);

            scanner.close();
        }
        private static String formatAverageScore(double averageScore) {
        if (averageScore % 1 == 0) {
            return String.format("%.0f", averageScore);
        } else {
            return String.format("%.1f", averageScore);
        }
    }


    public static void main2(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.nextLine();
        String[] s = input.split(",");
        double [] nums = new double[s.length];
        for (int x = 0; x < s.length; x++) {
            nums[x] = Double.parseDouble(s[x].trim());
        }

        Arrays.sort(nums);
        System.out.println(nums[1]);
        System.out.println(nums[nums.length-2]);
        double sum = 0;
        for (int j = 1; j < nums.length; j++){
            sum += nums[j];
        }
        double avg = (double) sum / nums.length-2;
        System.out.printf("%.2f",avg);
    }
    public static void main1(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        String s1 = s.replace(" ","A");
        System.out.println(s1);
    }
}
